package com.ruoyi.crm.controller.transfer;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.crm.domain.dto.TransferDTO;
import com.ruoyi.crm.service.ReportDataService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author mr.huang [jie88888822@163.com]
 * @devTime 2022-06-28
 */
@Slf4j
@RestController
@RequestMapping("/transfer")
public class TransferController extends BaseController {
	@Resource
	private ReportDataService reportDataService;

	@GetMapping("/list")
	public TableDataInfo transferList(){
		startPage();
		List<TransferDTO> transferDTOS = reportDataService.getTransferDTOS();
		return getDataTable(transferDTOS);
	}
}
